// src/store/modules/auth.js
export default {
    namespaced: true,
    state: () => ({
      user: null,
      token: null
    }),
    getters: {
      isAuthenticated: state => !!state.token
    },
    mutations: {
      SET_TOKEN(state, token) {
        state.token = token
      }
    }
  }